//
//  ObjectDescriptionViewController.m
//  PetTown
//
//  Created by lanou3g on 15/6/5.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "ObjectDescriptionViewController.h"
#import "AppDelegate.h"
@interface ObjectDescriptionViewController ()

@end

@implementation ObjectDescriptionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"版权声明";
    UIView * viewBJ = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    self.view.backgroundColor = [UIColor whiteColor];
    UILabel * lable = [[UILabel alloc] initWithFrame:CGRectMake(15, 69, self.view.frame.size.width-30, self.view.frame.size.height-74)];
   
  
    lable.text = @"版权声明:\n\n本应用软件(萌宠家园)刊登的所有内容,包括文字、图片、音频、软件、程序以及软件板式设计等均在网上搜集.\n访问者可将本软件提供的内容或服务用于个人学习、研究或欣赏、以及其他费商业性或非营利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯本应用软件及相关权利人的合法权利.\n本应用软件内容原作者如不愿意在本软件刊登内容,请及时通知本站,予以删除.\n\n邮箱:changjian2333@163.com\n        yangyangvip7456@163.com\n        490417088@qq.com\n地址: 北京市";
    lable.numberOfLines = 0;
    lable.textAlignment = NSTextAlignmentNatural;
    [viewBJ addSubview:lable];
    [self.view addSubview:viewBJ];
    
#pragma mark----抽屉
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"<<"style:UIBarButtonItemStylePlain target:self action:@selector(presentLeftMenuViewController:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor blackColor];
    
}



#pragma mark----抽屉
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    //设置changeView为隐藏
    AppDelegate * app = (AppDelegate * )[UIApplication sharedApplication].delegate;
    app.changeView.hidden = YES;
    
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    //清除缓存
    SDImageCache * sdI = [SDImageCache sharedImageCache];
    [sdI clearDisk];
    [sdI clearMemory];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
